package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.db.Similar;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SimilarMapper extends BaseMapper<Similar> {


    @Select("select * from tb_similar where userId=#{userId} order by score desc")
    List<Similar> sortScore(Long userId);
}
